package com.jiyun.foundation;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import nonapi.io.github.classgraph.json.Id;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-02-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("foundation_client")
public class FoundationClient implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 客户id
     */
    @Id
    @Schema(description = "客户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 客户编号
     */
    @Schema(description = "客户编号")
    @TableField("numbering")
    private String numbering;

    /**
     * 客户名称
     */
    @Schema(description = "客户名称")
    @TableField("name")
    private String name;

    /**
     * 客户行业
     */
    @Schema(description = "客户行业")
    @TableField("industry")
    private String industry;

    /**
     * 客户状态
     */
    @Schema(description = "客户状态")
    @TableField("state")
    private Integer state;

    /**
     * 联系人名称
     */
    @Schema(description = "联系人名称")
    @TableField("contact_person")
    private String contactPerson;

    /**
     * 联系人电话
     */
    @Schema(description = "联系人电话")
    @TableField("phone")
    private String phone;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    @TableField("revise_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date reviseTime;

    /**
     * 客户级别
     */
    @Schema(description = "客户级别")
    @TableField("level")
    private Integer level;

    /**
     * 客户标签
     */
    @Schema(description = "用户ID")
    @TableField("label")
    private String label;

    /**
     * 区域
     */
    @Schema(description = "用户ID")
    @TableField("region")
    private String region;

    /**
     * 公司地址
     */
    @Schema(description = "用户ID")
    @TableField("firm_address")
    private String firmAddress;

    /**
     * 邮编
     */
    @Schema(description = "用户ID")
    @TableField("zip")
    private String zip;

    /**
     * 备注
     */
    @Schema(description = "用户ID")
    @TableField("remark")
    private String remark;

    /**
     * 联系人部门
     */
    @Schema(description = "用户ID")
    @TableField("department")
    private String department;

    /**
     * 职位
     */
    @Schema(description = "用户ID")
    @TableField("posts")
    private String posts;

    /**
     * 联系人qq号
     */
    @Schema(description = "用户ID")
    @TableField("qq")
    private String qq;

    /**
     * 发票抬头
     */
    @Schema(description = "用户ID")
    @TableField("invoice")
    private String invoice;

    /**
     * 纳税人识别号
     */
    @Schema(description = "用户ID")
    @TableField("taxpayer")
    private String taxpayer;

    /**
     * 开户行
     */
    @Schema(description = "用户ID")
    @TableField("accounts")
    private String accounts;

    /**
     * 开户人名
     */
    @Schema(description = "用户ID")
    @TableField("accounts_name")
    private String accountsName;

    /**
     * 银行账号
     */
    @Schema(description = "用户ID")
    @TableField("bank")
    private String bank;


    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(exist = false)
    private Date start;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(exist = false)
    private Date end;


}
